<template>
	<view class="label_length">
		<view class="label_left">
			<u-line length="50%" direction="col" color="#FBCB11"></u-line>
			<text style="color: #FBCB11;font-size: larger;font-weight: bolder;">|</text>
			<text style="font-size: 32rpx;margin-right: 16rpx;margin-left: 8rpx;">{{label.zhTitle}}</text>
			<text style="font-size: 20rpx;color: #9F9F9F;">{{label.enTitle}}</text>
		</view>
		<!-- 更多 -->
		<view class="label_right" @tap="toSearch()">
			{{label.more}}
			<u-icon style="margin-left: 8rpx;" name="arrow-right" size="22"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props:{
			label:{
				type: Object,
				default: {
					zhTitle:'中文标题',
					enTitle:'en title',
					more:'更多',
					tapPath:''
				}
			},
		},
		methods: {
			toSearch(){
				if(this.label.tapPath){
					uni.navigateTo({
						// url: '/pages/search/internet'
						url: this.label.tapPath
					})
				}
			}
		}
	}
</script>

<style scoped>
.label_length{
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: baseline;
	font-family: PingFang SC, PingFang SC;
	font-weight: 400;
	color: #FFFFFF;
	line-height: 28rpx;
	font-style: normal;
	text-transform: none;
	margin-bottom: 22rpx;
}
.label_left,.label_right{
	display: flex;
	align-items: baseline;
}
.label_right{
	color: rgba(255,255,255,0.65);
	font-weight: 500;
	font-size: 22rpx;
}
</style>
